package com.atguigu.structure.proxy.staticproxy;

public class TeacherDaoProxy implements ITeacherDao{

    private TeacherDao teacherDao;

    public TeacherDaoProxy(TeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    @Override
    public void teach() {
        System.out.println("教育前...");
        teacherDao.teach();
        System.out.println("教育后...");
    }
}
